package com.nervenets.web.hibernate.domain.user;

import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "addresses")
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Address extends DomainObject {
    private long userId;
    private String name;
    private String mobile;
    private int areaId;
    private String detail;
    private boolean def = false;
}
